﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AutoF3
{
    public partial class BuildSheetForm : Form
    {
        SheetBuilder sb;
        string problemSheetFileName;
        string solutionsSheetFileName;

        public BuildSheetForm(SheetBuilder sb, string problemSheetFileName, string solutionsSheetFileName)
        {
            InitializeComponent();
            this.sb = sb;
            this.problemSheetFileName = problemSheetFileName;
            this.solutionsSheetFileName = solutionsSheetFileName;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            sb.BuildSheet(nameTextBox.Text, sheetNumberTextBox.Text, introTextBox.Text, problemSheetFileName, solutionsSheetFileName);
        }
    }
}
